package com.crack.nga2.entity;

import android.graphics.Bitmap;

/**
 * 要上传的图片
 * Created by Administrator on 2016/1/9.
 */
public class UploadImage {
    private String url;
    private Bitmap bitmap;
    private String localPath;

    public UploadImage() {
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Bitmap getBitmap() {
        return bitmap;
    }

    public void setBitmap(Bitmap bitmap) {
        this.bitmap = bitmap;
    }

    public String getLocalPath() {
        return localPath;
    }

    public void setLocalPath(String localPath) {
        this.localPath = localPath;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        UploadImage that = (UploadImage) o;

        return localPath != null ? localPath.equals(that.localPath) : that.localPath == null;

    }

    @Override
    public int hashCode() {
        return localPath != null ? localPath.hashCode() : 0;
    }
}
